package com.tencent.sr.iris.activity.domain.event.dto;

import lombok.Builder;
import lombok.Data;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.search.aggregations.AggregationBuilder;
import org.elasticsearch.search.collapse.CollapseBuilder;
import org.elasticsearch.search.sort.SortBuilder;

import javax.validation.constraints.NotNull;

/**
 * 用户活动任务完成进度
 */
@Data
@Builder
public class EsQueryDTO {

    private String routing;

    private int pageNum = 1;

    private int pageSize = 10;

    @NotNull(message = "es搜索参数不能为空")
    private QueryBuilder query;

    private SortBuilder sortBuilder;

    private AggregationBuilder totalAggregation;

    private CollapseBuilder collapseBuilder;

}
